Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: plugin system #64

Merged
merged 6 commits into from
Nov 16, 2021
Merged

feat: plugin system #64

merged 6 commits into from
Nov 16, 2021

Conversation

f0rmiga
Copy link
Contributor

@f0rmiga f0rmiga commented Nov 15, 2021

Closes #45.

Signed-off-by: Thulio Ferraz Assis <3149049+f0rmiga@users.noreply.github.com>
Signed-off-by: Thulio Ferraz Assis <3149049+f0rmiga@users.noreply.github.com>
Signed-off-by: Thulio Ferraz Assis <3149049+f0rmiga@users.noreply.github.com>
Signed-off-by: Thulio Ferraz Assis <3149049+f0rmiga@users.noreply.github.com>
Copy link
Member

@alexeagle alexeagle left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All looks great to me. We should pivot to writing a basic plugin authors guide, and confirm we can write a plugin outside the repo.

"aspect.build/cli/pkg/ioutils"
)

// Plugin determines how an aspect Plugin should be implemented.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is handy for plugins written in Go, should we mention that it's optional for plugins in other languages?

also, why isn't this produced in the protoc output .pb.go file instead?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we can mention it in the SDK doc.

As for your second question, I wanted to abstract the internal RPC communication so that the user doesn't need to care whether it's gRPC or not. It doesn't feel like the user of the SDK is doing gRPC, it's just implementing a simple Go interface.

Signed-off-by: Thulio Ferraz Assis <3149049+f0rmiga@users.noreply.github.com>
Signed-off-by: Thulio Ferraz Assis <3149049+f0rmiga@users.noreply.github.com>
@f0rmiga f0rmiga merged commit d6dd196 into main Nov 16, 2021
@f0rmiga f0rmiga deleted the plugin-system branch November 16, 2021 00:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

feature: plugin system using hashicorp/go-plugin
2 participants